<?php $testarray=array('test', 'foo', 'bar');
$weirdarray['a']=$testarray;
$weirdarray['b']='test';

echo json_encode($weirdarray);
?>
